Skip to content

Java02. ДЗ 02, Shevchenko Ilya#3

Open
Qwsafex wants to merge 3 commits into
masterfrom
Trie
Open

Java02. ДЗ 02, Shevchenko Ilya#3
Qwsafex wants to merge 3 commits into
masterfrom
Trie

Conversation

@Qwsafex

@Qwsafex Qwsafex commented Oct 4, 2016

Copy link
Copy Markdown
Owner

No description provided.

@Qwsafex Qwsafex changed the title Trie Java02. ДЗ 02, Shevchenko Ilya Oct 4, 2016

@sproshev sproshev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10

private TrieNode root;
private int size;

static class TrieNode{

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

private

}
}
private TrieNode parse(InputStream in) throws IOException {
in.read();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в этом месте не очень понятно, зачем NODE_BEGIN писали

trie.serialize(out);
byte[] buf = out.toByteArray();
ByteArrayInputStream in = new ByteArrayInputStream(buf);
trie.deserialize(in);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

если заполненное trie никак не поменялось внутри этого метода, тест все равно пройдет

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants